package com.bgs.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 商品详情表
 * </p>
 *
 * @author Asia
 * @since 2021-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OrderDetail对象", description="商品详情表")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品详情表id")
      @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Integer orderDetailId;

    @ApiModelProperty(value = "商品名称")
    private String orderDetailName;

    @ApiModelProperty(value = "购买商品库存")
    private String orderDetailRepertory;

    @ApiModelProperty(value = "购买商品单价")
    private Double orderDetailPrice;

    @ApiModelProperty(value = "购买商品重量")
    private String orderDetailWeight;

    @ApiModelProperty(value = "商品介绍")
    private String orderDetailIntroduce;

    @ApiModelProperty(value = "商品类别id")
    private Integer productId;

    @ApiModelProperty(value = "0是认领1是直购2是拼团和直购")
    private Integer orderDetailStatus;

    @ApiModelProperty(value = "拼团人数")
    private Integer spellGroupNumber;

    @ApiModelProperty(value = "拼团价格")
    private Double spellGroupPrice;

    @ApiModelProperty(value = "销量(原销量+卖出去的个数)")
    private Integer orderDetailSales;

    @ApiModelProperty(value = "商品推荐(redis或者mq来实现)")
    private Integer orderDetailRecommended;

    @ApiModelProperty(value = "是否支持七天无理由退货0不支持,1支持")
    private Integer salesReturn;

    @ApiModelProperty(value = "店铺id")
    private Integer storeId;

    @ApiModelProperty(value = "审核状态")
    private Integer orderDetailState;

    private List<Picture> pictures;
}
